package com.j180.bean;

import java.io.Serializable;
import java.util.List;
 
/**
 * 供应商类
 */
public class Supplier implements Serializable {
    //供应商id(供应商表中的id)
    private Integer id;
    //供应商编号(即供应商管理员编号)
    private Integer supId;
    //供应商名字，如XXX小卖部
    private String name;
    //供应商地址，如XX街XX号
    private String address;
    //供应商电话
    private String telNum;
    //供应商网址，如www.4399.com
    private String website;
    //供应商营业执照
    private String licensePic;
    //供货商管理员
    private User user;
    //供应货品集合
    private List<SupGoods> supGoods;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSupId() {
        return supId;
    }

    public void setSupId(Integer supId) {
        this.supId = supId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelNum() {
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String getLicensePic() {
        return licensePic;
    }

    public void setLicensePic(String licensePic) {
        this.licensePic = licensePic;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<SupGoods> getSupGoods() {
        return supGoods;
    }

    public void setSupGoods(List<SupGoods> supGoods) {
        this.supGoods = supGoods;
    }

    @Override
    public String toString() {
        return "Supplier{" +
                "id=" + id +
                ", supId=" + supId +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", telNum='" + telNum + '\'' +
                ", website='" + website + '\'' +
                ", licensePic='" + licensePic + '\'' +
                ", user=" + user +
                ", supGoods=" + supGoods +
                '}';
    }
}
